#ifndef QENROLDIALOG_H
#define QENROLDIALOG_H
#include <QtGui>
#include <QtSql>

class QEnrolDialog : public QDialog
{
    Q_OBJECT

public:

    void setFileInfo(QString,QFileInfo*);
    void initConnect();

    QEnrolDialog(QWidget *parent = 0);
    ~QEnrolDialog();

public slots:
    void saveVideoSlot();

private:

    QLabel *mNameLabel;
    QLineEdit *mName;

    QLabel *mSizeLabel;
    QLabel *mSize;

    QLabel *mHashLabel;
    QLabel *mHash;

    QLabel *mContentsLabel;
    QTextEdit *mContents;

    QLabel *mCategoryLabel;
    QComboBox *mCategory;

    QLabel *mTagLabel;
    QLineEdit *mTag0;
    QLineEdit *mTag1;
    QLineEdit *mTag2;
    QLineEdit *mTag3;
    QLineEdit *mTag4;

    QLabel *mScoreLabel;
    QSpinBox *mScore;

    QPushButton *mSaveButton;
    QPushButton *mCancelButton;


    void initWidget();

};

#endif // QENROLDIALOG_H
